<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

use Think\Model;

class TrainSubmit
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "视觉训练记录提交";
    public $group = '视觉训练';
    public $desc = "";

    public $input = [
        'trainid' => 'required;int;label=视觉训练科目id;',
    ];

    public $output = [
        'id' => 'label=视觉训练记录id;',
    ];



    public function run($param, $uid)
    {
        $result = OE('User')->trainSubmit($uid, $param);

        return [
            'id' => $result,
        ];
    }
}
